﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Collections.ObjectModel;
using BasicDataManagement;


namespace MembersManagement
{
    /// <summary>
    /// Window1.xaml 的交互逻辑
    /// </summary>
    public partial class Window1 : Window
    {
        IOpertation op = OperationFactory.Create();
        
        public Window1()
        {
            InitializeComponent();
            MemberTypelistBox.ItemsSource = null;
            MemberTypelistBox.ItemsSource = new ObservableCollection<string>(op.LoadMemberType());
        }

        private void AddMemberTypeMI_Click(object sender, RoutedEventArgs e)
        {

        }

        private void RenameMemberTypeMI_Click(object sender, RoutedEventArgs e)
        {

        }

        private void AddMemberMI_Click(object sender, RoutedEventArgs e)
        {
            AddMemberWindow amw = new AddMemberWindow();
            amw.ShowDialog();
        }

        private void EditMemberMI_Click(object sender, RoutedEventArgs e)
        {
            AddMemberWindow amw = new AddMemberWindow();
            amw.ShowDialog();
        }

       
    }
}
